package com.btshop.goods.pojo;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class Sku implements Serializable {
    //商品id
    @ApiModelProperty(value = "商品id")
    private Long id;

    //商品条码
    @ApiModelProperty(value = "商品条码")
    private String sn;

    //SKU名称
    @ApiModelProperty(value = "SKU名称")
    private String name;

    //价格（分）
    @ApiModelProperty(value = "价格（分）")
    private Integer price;

    //库存数量
    @ApiModelProperty(value = "库存数量")
    private Integer num;

    //库存预警数量
    @ApiModelProperty(value = "库存预警数量")
    private Integer alertNum;

    //商品图片
    @ApiModelProperty(value = "商品图片")
    private String image;

    //商品图片列表
    @ApiModelProperty(value = "商品图片列表")
    private String images;

    //重量（克）
    @ApiModelProperty(value = "重量（克）")
    private Integer weight;

    //创建时间
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    //更新时间
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    //SPUID
    @ApiModelProperty(value = "SPUID")
    private Long spuId;

    //类目ID
    @ApiModelProperty(value = "类目ID")
    private Long categoryId;

    //类目名称
    @ApiModelProperty(value = "类目名称")
    private String categoryName;

    //品牌名称
    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    //规格
    @ApiModelProperty(value = "规格")
    private String spec;

    //销量
    @ApiModelProperty(value = "销量")
    private Integer saleNum;

    //评论数
    @ApiModelProperty(value = "评论数")
    private Integer commentNum;

    //商品状态 1-正常，2-下架，3-删除
    @ApiModelProperty(value = "商品状态 1-正常，2-下架，3-删除")
    private String status;

    //乐观锁版本号
    @ApiModelProperty(value = "乐观锁版本号")
    private Integer optimistic;

    //备注字段
    @ApiModelProperty(value = "备注字段")
    private String remark;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getAlertNum() {
        return alertNum;
    }

    public void setAlertNum(Integer alertNum) {
        this.alertNum = alertNum;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getOptimistic() {
        return optimistic;
    }

    public void setOptimistic(Integer optimistic) {
        this.optimistic = optimistic;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sn=").append(sn);
        sb.append(", name=").append(name);
        sb.append(", price=").append(price);
        sb.append(", num=").append(num);
        sb.append(", alertNum=").append(alertNum);
        sb.append(", image=").append(image);
        sb.append(", images=").append(images);
        sb.append(", weight=").append(weight);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", spuId=").append(spuId);
        sb.append(", categoryId=").append(categoryId);
        sb.append(", categoryName=").append(categoryName);
        sb.append(", brandName=").append(brandName);
        sb.append(", spec=").append(spec);
        sb.append(", saleNum=").append(saleNum);
        sb.append(", commentNum=").append(commentNum);
        sb.append(", status=").append(status);
        sb.append(", optimistic=").append(optimistic);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}